<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]

//$_SERVER['PATH_INFO'] = explode('.php/', $_SERVER['SCRIPT_NAME'])[1]; //TODO 注意线上此处的不同，切勿覆盖线上

//一定要加后分隔符，否则会导致vendor失效
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);

// 定义应用目录
define('APP_PATH', ROOT_PATH . 'application/');

//定义项目物理根路径，项目所在文件夹
define('PROJECT_PATH', rtrim(dirname(__FILE__), '/\\'));

//定义网站根目录物理路径,从根目录到htdocs，即是项目的父级目录
define('WWW_PATH', dirname(PROJECT_PATH) . DIRECTORY_SEPARATOR);

//定义文件上传目录
define('UPLOAD_FILE_PATH', ROOT_PATH . 'upload_file/');

//定义文件下载目录
define('DOWNLOAD_FILE_PATH', ROOT_PATH . 'download_file/');

//绑定到后台
define('BIND_MODULE','admin');

//安全访问标识
define('IN_CT', true);

//引入常量定义文件
require_once APP_PATH . 'constant.php';

// 加载框架引导文件
require __DIR__ . '/thinkphp/start.php';
